package com.hotelbooking.user.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="User")
public class User {
	private int userId;
	private String email;
	private String mobile;
	private String password;
	private String Name;
	private char sex;

	public User() {
		super();
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getUserId() {
		return userId;
	}

	@Column(name="Email")
	public String getEmail() {
		return email;
	}

	@Column(name="Mobile")
	public String getMobile() {
		return mobile;
	}

	@Column(name="Password")
	public String getPassword() {
		return password;
	}

	@Column(name="Name")
	public String getName() {
		return Name;
	}

	@Column(name="Sex")
	public char getSex() {
		return sex;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setName(String name) {
		Name = name;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}

}
